/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.income;

import java.util.List;

import com.idenger.modules.edu.dao.income.EduIncomeDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.income.EduIncome;

/**
 * 收入记录Service
 * @author 兰正军
 * @version 2017-12-12
 */
@Service
@Transactional(readOnly = true)
public class EduIncomeService extends CrudService<EduIncomeDao, EduIncome> {

	public EduIncome get(String id) {
		return super.get(id);
	}
	
	public List<EduIncome> findList(EduIncome eduIncome) {
		return super.findList(eduIncome);
	}
	
	public Page<EduIncome> findPage(Page<EduIncome> page, EduIncome eduIncome) {
		return super.findPage(page, eduIncome);
	}
	
	@Transactional(readOnly = false)
	public void save(EduIncome eduIncome) {
		super.save(eduIncome);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduIncome eduIncome) {
		super.delete(eduIncome);
	}
	
	@Transactional(readOnly = false)
	public void updateIncomeForUserId(String updUserId,String userId){
		dao.updateIncomeForUserId(updUserId, userId);
	}
}